<!DOCTYPE html>
<html>

<head lang="en">
    <title>评论游记</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/myStrategyComment.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/jquery-confirm/css/jquery-confirm.css">
    <script src="/js/plugins/jquery-confirm/js/jquery-confirm.js"></script>
    <script src="/js/common.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script>
        $(function () {
            $("#submitBtn").click(function () {
                var params = getParams();
                var id = params.strategycommentId;
                var content = $("#content").val();
                console.log(content);
                $.post("/strategydoublecomment", {"strategycomment.id": id, content: content}, function (data) {
                    if (data.success) {
                        window.history.go(-1);
                    }
                })
            })
        })
    </script>
</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="javascript:window.history.go(-1)">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col">
            <span>游记评论</span>
        </div>
        <div class="col"></div>
    </div>
</div>

<div class="comment">
    <div class="container tag">
        <textarea name="content" id="content" class="form-control" rows="5" placeholder="请填写你的评论"></textarea>
    </div>
</div>

<div class="operation">
    <button class="btn" onclick="window.history.go(-1)">放弃评论</button>
    <button class="btn" id="submitBtn">提交评论</button>
</div>

</body>
</html>